home *** CD-ROM | disk | FTP | other *** search
- #ifndef _IOCTL_H
- # define _IOCTL_H
-
- #if defined(__cplusplus)
- extern "C" {
- #endif
-
- #define TIOCGETP (('T'<< 8) | 0)
- #define TIOCSETP (('T'<< 8) | 1)
- #define TIOCSETN TIOCSETP
- #define TIOCGETC (('T'<< 8) | 2)
- #define TIOCSETC (('T'<< 8) | 3)
- #define TIOCGLTC (('T'<< 8) | 4)
- #define TIOCSLTC (('T'<< 8) | 5)
-
- #ifdef __MINT__
- #define FIONREAD (('F'<< 8) | 1)
- #define FIONWRITE (('F'<< 8) | 2)
- #define TIOCGPGRP (('T'<< 8) | 6)
- #define TIOCSPGRP (('T'<< 8) | 7)
- #define TIOCFLUSH (('T'<< 8) | 8)
- #define TIOCSTOP (('T'<< 8) | 9)
- #define TIOCSTART (('T'<< 8) | 10)
-
- /* not yet implemented in MiNT */
- #define TIOCGETD (('T'<<8) | 16)
- #define TIOCSETD (('T'<<8) | 17)
- #define NTTYDISC 1
-
- /* ioctl's to act on processes */
- #define PPROCADDR (('P'<<8) | 1)
- #define PBASEADDR (('P'<<8) | 2)
-
- #endif /* __MINT__ */
-
- struct tchars {
- char t_intrc;
- char t_quitc;
- char t_startc;
- char t_stopc;
- char t_eofc;
- char t_brkc;
- };
-
- struct ltchars {
- char t_suspc;
- char t_dsuspc;
- char t_rprntc;
- char t_flushc;
- char t_werasc;
- char t_lnextc;
- };
-
- #define CRMOD 0x0001
- #define CBREAK 0x0002
- #define ECHO 0x0004
- #define XTABS 0x0008
- #define RAW 0x0010
- #define LCASE 0x0020 /* does nothing (and never will!) */
- #define TANDEM 0x0000 /* not needed */
- #define META 0x0100 /* extension: Alternate as meta key */
- #define PASS8 0x0100 /* PASS8 Same as META */
- #define EVENP 0x4000
- #define ODDP 0x8000
-
- /* Only ones that are likely to be used are here */
- /* ok, but emacs thinks it knows their value */
- #define B50 1
- #define B75 2
- #define B110 3
- #define B135 4
- #define B150 5
- #define B200 6
- #define B300 7
- #define B600 8
- #define B1200 9
- #define B1800 10
- #define B2400 11
- #define B4800 12
- #define B9600 13
- #define B19200 14
- #define B38400 15
-
- #define ANYP (B300|B1200|B2400|B4800|B9600)
- #define ALLDELAY 0
-
- struct sgttyb {
- char sg_ispeed;
- char sg_ospeed;
- char sg_erase;
- char sg_kill;
- short sg_flags;
- };
-
- #ifndef _COMPILER_H
- #include <compiler.h>
- #endif
-
- __EXTERN int ioctl __PROTO((int fd, int func, void *arg));
- __EXTERN int stty __PROTO((int fd, struct sgttyb *tty));
- __EXTERN int gtty __PROTO((int fd, struct sgttyb *tty));
-
- #if defined(__cplusplus)
- }
- #endif
-
- #endif /* _IOCTL_H */
-